package io.github.uicdb.et;

import net.neoforged.bus.api.SubscribeEvent;
import net.neoforged.fml.common.EventBusSubscriber;
import net.neoforged.fml.event.config.ModConfigEvent;
import net.neoforged.neoforge.common.ModConfigSpec;

// An example config class. This is not required, but it's a good idea to have one to keep your config organized.
// Demonstrates how to use Neo's config APIs
@EventBusSubscriber(modid = ElementalTheory.MODID, bus = EventBusSubscriber.Bus.MOD)
public class ETConfig {
    private static final ModConfigSpec.Builder BUILDER = new ModConfigSpec.Builder();

    public static final ModConfigSpec.BooleanValue DISPLAY_ELEMENT = BUILDER
            .translation("elemental_theory.configuration.display_element")
            .comment("display element over entities")
            .define("disPlayElement", true);


    // a list of strings that are treated as resource locations for items

    static final ModConfigSpec SPEC = BUILDER.build();

    public static boolean disPlayElement;

    @SubscribeEvent
    static void onLoad(final ModConfigEvent event) {
        disPlayElement = DISPLAY_ELEMENT.get();
    }

}
